package com.ruoyi.web.domain.knowledgebase;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.Data;

import java.util.Date;

/**
 * @ClassName: KnowledgeBase
 * @author: z越
 * @date: 2024/2/20  9:10
 * @description
 */
@Data
@TableName(value = "tt_knowledge_base", autoResultMap = true)
public class KnowledgeBase {
    //主键id
    @TableId(type = IdType.AUTO)
    private Long id;
    //名称
    private String name;
    //简介
    private String profile;
    //形态特征
    private String formFeature;
    //图片
    private String pictures;
    //创建时间
    private Date createTime;
    //创建人
    private String createBy;
    //类型（pest:虫害，crop：植物，disease：病害）
    private String type;
    //扩展数据
    @TableField(typeHandler = JacksonTypeHandler.class)
    private KnowledgeExtend extend;

}
